{% extends "master.html" %}
{% block content %}
Hér er búið til próf {{ users }}
    <form name="examform"
          action="" method="POST">{% csrf_token %}
    
    <p>grade: {{ grade }}</p>
    <p>average: {{ average }}</p>

    {% for question in exam_questions %}
        <label id="ques{{  forloop.counter }}">{{ question.Qquestion }}</label></br>
        <blockquote>
        {% for answer in question.Qanswer %}
            <input type="radio" name="{{ forloop.parentloop.counter }}" id="ans{{ forloop.counter }}" value="{{ answer.Aid }}"/>
            {{ answer.Aanswer }}
            <br />
        {% endfor %}
        </blockquote>

    {% endfor %}

    <input type="submit" value="submit" />
    </form>

{% endblock %}